/**
 * Created by Administrator on 2016/8/3.
 */
swan_pc
    .factory("getCandidateUser",function($resource){
        return $resource("api/candidateUsers",{
            "query":{
                method:"GET",
                isArray:true
            }
        })
    })
    .factory("getInvitations",function($resource){
        return $resource("api/invitations",{
            "query":{
                method:"GET"
            }
        })
    })
    .factory("getInvitationById",function($resource){
        return $resource("api/invitations/:id",{id:"@id"},{
            "get":{
                method:"GET"
            }
        })
    })
    .factory("InvitationCancel",function($resource){
        return $resource("api/invitations/:id/cancel",{id:"@id"},{
            "update":{
                method:"PUT"
            }
        })
    })
    .factory("InvitationConfirm",function($resource){
        return $resource("api/invitations/:id/confirm",{id:"@id"},{
            "update":{
                method:"PUT"
            }
        })
    })
    .factory("InvitationConflicts",function($resource){
        return $resource("api/invitations/:id/conflicts",{id:"@id"},{
            "query":{
                method:"GET",
                isArray:true
            }
        })
    })